package com.hgsoft.pubsv.component.apifilter.enums;

/**
 * 授权参数
 * @author saint
 */
public enum AuthParamAttribute {

	TIME("time"),//发送请求的时间，格式"yyyy-MM-dd HH:mm:ss"
	TOKENID("tokenId"),
	CLIENTKEY("clientKey"),
	;	
	private String val;
	private AuthParamAttribute(String val) {
		this.val = val;
	}
	public String val() {
		return val;
	}
	public void setVal(String val) {
		this.val = val;
	}
	
	public static boolean isExist(String val) {
		for (AuthParamAttribute attribute : AuthParamAttribute.values()) {
			if(attribute.val().equals(val)) {
				return true;
			}
		}
		return false;
	}
}
